package com.qf.listener;

import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.stereotype.Component;

/**
 * @author wbzs,
 * @date 2022/10/27,
 * @time 19:54,
 */
@Component
public class MyRabbitListenner {
    @StreamListener("suibianxie") //'suibainxie' 是生产者的交换机
    public void message(String msg){
        System.err.println("MyRabbitListenner中的方法message 执行了--->"+msg);
    }
}
